import algorithm.SameLength;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class SpringBean {

    public static void main(String[] args) {
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("classpath*:WEB-INF/spring/spring_bean.xml");

        SameLength sameLength = applicationContext.getBean(SameLength.class);
        String a = sameLength.longestPalindrome("1444114141414141154151");
        System.out.println(a);
        System.out.println(sameLength.strToInt32.myAtoi("123123"));
    }
}
